<html>
<head>
</head>
<body>
<div>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9537">
Bug 9537 REGRESSION: Reproducible crash in WebCore::LayoutTextField::textWithHardLineBreaks()</a></div>
<div>https://bugs.webkit.org/show_bug.cgi?id=9537</div>
<form name="f" method="get" action="textarea-hard-linewrap-empty.html">
<textarea id="textarea" name="textarea" wrap="hard" cols="5"></textarea>
<input type="submit">
</form>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

if (document.URL.indexOf('?') == -1) {
    document.f.submit();
} else {
    var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length);
    if (formData == "textarea=")
        document.write("Success");
    else
        document.write("<div>Failure.</div><div>Expected: textarea=</div><div>Actual: " + formData + "</div>");

    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
</body>
</html>
